package com.zgjkhis.modules.system.service.mapper;

import com.zgjkhis.common.mapper.CoreMapper;
import com.zgjkhis.modules.system.domain.Store;
import com.zgjkhis.modules.system.service.dto.StoreDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author yzq
 * @Description 门店
 * @Date 2021/6/23 9:48
 * @Param
 * @return
 **/
@Repository
public interface StoreMapper extends CoreMapper<Store> {


    /**
     * @Author yzq
     * @Description 根据用户id查询该用户下商店
     * @Date 2021/8/5 15:45
     * @Param [id]
     * @return java.util.List<com.zgjkhis.modules.system.domain.Store>
     **/
    List<StoreDto> queryListByUserId(@Param("id") Long id);

    List<Store> queryStoreByUserId(@Param("id")Long id);

    List<StoreDto> queryStoreListByUserId(@Param("id")Long id);

    Store queryByUserId(@Param("id")Long id, @Param("pharmacyId")String pharmacyId);

}
